package com.ep.thirdPlatformProject.workWx.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;


import java.util.List;

@Data
@Configuration
@Primary
@ConfigurationProperties(prefix = "wechat.cp")
public class WxCpProperties {
    private List<AppConfig> appConfigs;

    @Data
    public static class AppConfig {

        /**
         * 设置企业微信的corpId
         */
        private String corpId;

        /**
         * 设置企业微信应用的AgentId
         */
        private Integer agentId;

        /**
         * 设置企业微信应用的Secret
         */
        private String secret;

        /**
         * 设置企业微信应用的token
         */
        private String token;

        /**
         * 设置企业微信应用的EncodingAESKey
         */
        private String aesKey;

    }

}